package com.toraeve.asktora.controller.common;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class LayoutController {

	@RequestMapping(value = "/layout/beginofpage", method = RequestMethod.GET)
	public String beginOfPage(Model model) {
		model.addAttribute("time", new Date());
		return "common/beginofpage";
	}

	@RequestMapping(value = "/layout/header", method = RequestMethod.GET)
	public String header(Model model) {
		return "common/header";
	}

	@RequestMapping(value = "/layout/footer", method = RequestMethod.GET)
	public String footer(Model model) {
		return "common/footer";
	}

	@RequestMapping(value = "/layout/endofpage", method = RequestMethod.GET)
	public String endOfPage(Model model) {
		return "common/endofpage";
	}
}
